package com.thug.bo;

public class Customer {

	private String firstName;
	private String lastName;

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public Customer(String firstName, String lastName) {
		super();
		this.firstName = firstName;
		this.lastName = lastName;
	}

	public void askPunchingBall(Shop shop) {

		System.out.println("Have you got punching balls ?");

		if (shop.isHasPunchingBalls()) {
			System.out.println("Yes.");
			System.out.println("Nice !");
		} else {

			System.out.println("No :-(");
			if (firstName.equals("Chuck") && lastName.equals("Norris")) {
				System.out.println("Mouaaaaaaaah !");
				shop.destroy();
			} else {
				System.out.println("What a pity ! Bye.");
			}
		}
	}

}
